home *** CD-ROM | disk | FTP | other *** search
/ PD Collection CD 1 / PD Collection CD 1.iso / textual / tex / files / !preview / RCS / h / structs < prev    next >
Encoding:
Text File  |  1990-07-06  |  1.2 KB  |  85 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    gtoal:1.1;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.1
  10. date     91.03.02.13.57.07;  author gtoal;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @Initial release
  17. @
  18.  
  19.  
  20.  
  21. 1.1
  22. log
  23. @Initial revision
  24. @
  25. text
  26. @/* h.structs --- structures for storing the dvi pages in memory.  */
  27.  
  28. struct text
  29. {
  30.   struct text *next;
  31.   char *text;
  32.   int x, y, w, h, font;
  33. };
  34.  
  35. struct rule
  36. {
  37.   struct rule *next;
  38.   int x, y, w, h;
  39. };
  40.  
  41. struct font_use
  42. {
  43.   struct font_use *next;
  44.   char *name;
  45.   int size;     /* in 16ths of a point.  */
  46.   int handle;
  47. };
  48.  
  49. struct page
  50. {
  51.   struct page *next;
  52.   struct text *texts;
  53.   struct rule *rules;
  54.   int dvi_page;
  55.   int tex_pages[10];
  56. };
  57.  
  58. struct dvi_file
  59. {
  60.   struct dvi_file *next;
  61.   char *name;
  62.   struct font_use *fonts;
  63.   struct page *pages;
  64.   int height, width;
  65. };
  66.  
  67. extern struct dvi_file *dvi_files;
  68.  
  69.  
  70. struct display_window
  71. {
  72.   struct display_window *next;
  73.   int w_handle;
  74.   struct dvi_file *file;
  75.   int hor_offset, ver_offset;        /* 1 inch both normally.  */
  76.   struct page *page;
  77.   sprite_area *area;                 /* The area of this file.  */
  78.   sprite_ptr sprite;                 /* The sprite holding this page's image.  */
  79. };
  80.  
  81. extern struct display_window *windows;
  82.  
  83. /* EOF */
  84. @
  85.